package com.uyayo.framework.web.model;

import io.swagger.annotations.ApiParam;

import java.io.Serializable;

/***
 * 请求数据
 *
 * @author: Best
 * @date: 2019/5/16
 * @since: 1.0
 */
public class RequestDefaultInfo implements Serializable{

    private static final long serialVersionUID = 7190372738249587130L;
    /**
     * 请求IP
     */
	@ApiParam(hidden=true)
    private String requestIp;
	
    /**
     * 浏览器
     */
	@ApiParam(hidden=true)
    private String browser;
	
    /**
     * 操作系统
     */
	@ApiParam(hidden=true)
    private String operatingSystem;

    /**
     * 设备类型
     */
	@ApiParam(hidden=true)
    private String deviceType;

    /**
     * domain
     */
	@ApiParam(hidden=true)
    private String domain;

    /**
     * 请求url
     */
	@ApiParam(hidden=true)
    private String url;

    /**
     * UA头
     */
	@ApiParam(hidden=true)
    private String userAgent;

    @ApiParam(hidden=true)
    private String protocol;

    public RequestDefaultInfo() {
    }

    public RequestDefaultInfo(String requestIp, String browser, String operatingSystem, String deviceType, String domain, String url, String userAgent, String protocol) {
        this.requestIp = requestIp;
        this.browser = browser;
        this.operatingSystem = operatingSystem;
        this.deviceType = deviceType;
        this.domain = domain;
        this.url = url;
        this.userAgent = userAgent;
        this.protocol = protocol;
    }

    public String getRequestIp() {
        return requestIp;
    }

    public void setRequestIp(String requestIp) {
        this.requestIp = requestIp;
    }

    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getOperatingSystem() {
        return operatingSystem;
    }

    public void setOperatingSystem(String operatingSystem) {
        this.operatingSystem = operatingSystem;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("RequestDefaultInfo{");
        sb.append("requestIp='").append(requestIp).append('\'');
        sb.append(", browser='").append(browser).append('\'');
        sb.append(", operatingSystem='").append(operatingSystem).append('\'');
        sb.append(", deviceType='").append(deviceType).append('\'');
        sb.append(", domain='").append(domain).append('\'');
        sb.append(", url='").append(url).append('\'');
        sb.append(", userAgent='").append(userAgent).append('\'');
        sb.append(", protocol='").append(protocol).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
